package com.qs.pojo.enums;

import com.alibaba.fastjson.annotation.JSONType;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.databind.deser.std.EnumDeserializer;
import com.fasterxml.jackson.databind.ser.std.EnumSerializer;
import lombok.Getter;

/**
 * ClassName: Status
 * Package: com.qs.enums
 * Description:
 *
 * @Author: @weixueshi
 * @Create: 2023/11/11 - 21:23
 * @Version: v1.0
 */

/**
 * 对应管理员的状态0：正常；1：禁用
 */
@JSONType(serializer = EnumSerializer.class, deserializer = EnumDeserializer.class, serializeEnumAsJavaBean = true)
@Getter
public enum Status {
    正常(0,"正常"),
    禁用(1,"禁用" );

    @EnumValue
    private Integer code ;
    private String comment ;

    Status(Integer code, String comment ){
        this.code=code;
        this.comment=comment;
    }
}
